<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Video extends Model
{
    use SoftDeletes;
    protected $fillable=['title','path'];
    protected $dates=['deleted_at'];

    public function lesson(){
        return $this->belongsTo(Video::class);
    }
}
